package com.elock.entity;

import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.elock.base.core.entity.BaseEntity;

/**
 * 终端是否在线
 * @author 仁德
 */
@Entity
@Table(name = "terminal_online")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "terminal_online_sequence")
public class TerminalOnline extends BaseEntity {

	private static final long serialVersionUID = 4914378966315340278L;

	/** 终端设备id，新增注册终端时，需写入一条空数据 */
	private Long terminalId;

	/** 终端设备编号 */
	private String terminalNum;

	/** 是否在线：0否 1是 */
	private int isOnline = 0;

	/** 上线时间 */
	private String onlineTime;

//	/** 备注 */
//	private String remark;

	/**  
	 * 获取terminalId  
	 * @return terminalId terminalId  
	 */
	public Long getTerminalId() {
		return terminalId;
	}

	/**  
	 * 设置terminalId  
	 * @param terminalId terminalId  
	 */
	public void setTerminalId(Long terminalId) {
		this.terminalId = terminalId;
	}

	/**  
	 * 获取terminalNum  
	 * @return terminalNum terminalNum  
	 */
	public String getTerminalNum() {
		return terminalNum;
	}

	/**  
	 * 设置terminalNum  
	 * @param terminalNum terminalNum  
	 */
	public void setTerminalNum(String terminalNum) {
		this.terminalNum = terminalNum;
	}

	/**  
	 * 获取isOnLine  
	 * @return isOnLine isOnLine  
	 */
	public int getIsOnline() {
		return isOnline;
	}

	/**  
	 * 设置isOnLine  
	 * @param isOnLine isOnLine  
	 */
	public void setIsOnline(int isOnline) {
		this.isOnline = isOnline;
	}

	/**  
	 * 获取onlineTime  
	 * @return onlineTime onlineTime  
	 */
	public String getOnlineTime() {
		return onlineTime;
	}

	/**  
	 * 设置onlineTime  
	 * @param onlineTime onlineTime  
	 */
	public void setOnlineTime(String onlineTime) {
		this.onlineTime = onlineTime;
	}

//	/**  
//	 * 获取remark  
//	 * @return remark remark  
//	 */
//	public String getRemark() {
//		return remark;
//	}
//
//	/**  
//	 * 设置remark  
//	 * @param remark remark  
//	 */
//	public void setRemark(String remark) {
//		this.remark = remark;
//	}

}
